import {
    createStore,
    applyMiddleware,
    combineReducers
} from 'redux'
import countReducer from './reducers/countReducer'
import movieReducer from './reducers/movieReducer'
console.log('store被调用了');
import thunk from 'redux-thunk';
const allReducer = combineReducers({
    movie: movieReducer,
    count: countReducer
})

const store = createStore(allReducer,applyMiddleware(thunk))

export default store